﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Quartz;
using System.Windows.Forms;

namespace House_Control
{
    class specJob : IJob
    {
        public virtual void Execute(IJobExecutionContext context)
        {
            MessageBox.Show("Appliance Started");
            Schedule x = Program.sc.getSchedule();
            Appliance random =  x.getAppliance();
            random.changeApplianceState();
            System.Windows.Forms.Button a = random.getButton();
            a.Text = "Turn Off";
            if (random.getApplianceType() == 3)
            {

                random = (Light)Program.house.getRoom(0).getAppliance(2);
            }
                
            }
    }
}

    

